package com.web_bloks.mvc.client;

/**
 * 
 * @author Jean-Lou Dupont
 *
 */
public class Proxy extends Notifier implements IProxy {

	// the proxy name
	private String proxyName = "Proxy";

	// the data object
	private Object data = null;

	/**
	 * Should use deferred binding to build such object.
	 * This will help for possible future enhancement.
	 */
	protected Proxy() {
		super();
	}
	/**
	 * Initialization
	 * 
	 * @param proxyName
	 * @param data
	 */
	public void init( String proxyName, Object data ) {
		if (proxyName != null) {
			this.proxyName = proxyName;
		}
		if (data != null) {
			this.data = data;
		}
	}

	public Object getData() {
		return this.data;
	}

	public String getProxyName() {
		return this.proxyName;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
